﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.Master" AutoEventWireup="true" CodeBehind="City.aspx.cs" Inherits="Interface.Houses.City" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

<div>
<asp:ScriptManager ID="scriptManager" runat="server" />
     <asp:UpdatePanel ID="updatePanel" runat="server" UpdateMode="Conditional">
            <ContentTemplate>
    <asp:GridView ID="gridcity" runat="server" EnableViewState="true" 
            AllowPaging="True" PageSize = "4" AllowSorting="True"
            AutoGenerateColumns="False" 
            AutoGenerateSelectButton="true" AutoGenerateEditButton="true" CellPadding="4" DataKeyNames="ID" 
            ShowFooter="true" > 
            <FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
            
            <Columns>                                                             
              <asp:TemplateField HeaderText="STT">
              <ItemTemplate>
                        <asp:Label ID="lblSTT" runat="server" Text='<%# Eval("STT") %>' ></asp:Label>
                    </ItemTemplate>                                       
              </asp:TemplateField>
              <asp:TemplateField HeaderText="Thành Phố">
                    <ItemTemplate>
                        <asp:Label ID="lblCity" runat="server" Text='<%# Eval("Name") %>' ></asp:Label>
                    </ItemTemplate> 
                    <EditItemTemplate>
                        <asp:TextBox ID="txtEditCityName" runat="server"></asp:TextBox>
                    </EditItemTemplate>                   
              </asp:TemplateField>
              
     
            </Columns>
            <RowStyle BackColor="#E3EAEB" />
            <EditRowStyle BackColor="#7C6F57" />
            <SelectedRowStyle BackColor="#C5BBAF" Font-Bold="True" ForeColor="#333333" />
            <PagerStyle BackColor="#666666" ForeColor="White" HorizontalAlign="Center" />
            <HeaderStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
            <AlternatingRowStyle BackColor="White" />
    </asp:GridView>
    </ContentTemplate>
    </asp:UpdatePanel>

   
    </div>
    <asp:Label runat="server" Text="City name">
    </asp:Label>
    <asp:TextBox ID = "cityName" runat="server">
    </asp:TextBox>
    
    <asp:Button ID = "Add" Text="Add" runat="server" onclick="Add_Click">
    
    </asp:Button>

    <asp:Label ID="lblMS" runat="server">
    </asp:Label>

</asp:Content>
